package com.ssd.demo.base.util;

import org.elasticsearch.index.query.QueryBuilder;

public class ESQueryParam {

	private QueryBuilder query;

	public ESQueryParam(QueryBuilder query) {
		this.query = query;
	}

	@Override
	public String toString() {
		
		StringBuilder sb = new StringBuilder();
		sb.append("{\"query\":");
		sb.append(query);
		sb.append("}");
		return sb.toString();
	}
	
	
	
}
